<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="../../css/system/${entity}.css" type="text/css">
    <link rel="stylesheet" href="https://www.layuicdn.com/layui-v2.5.6/css/layui.css" type="text/css">
    <title>${table.comment!}</title>
</head>
    <body>
        <form class="layui-form updateData" lay-filter="updateData" style="display: none; padding: 20px;">
            <#-- ----------  BEGIN 字段循环遍历  ---------->
            <#list table.fields as field>
            <#if field.keyFlag>
                <input type="hidden" name="${field.propertyName}" class="layui-input">
            </#if>
            <#if field.propertyType == 'String'>
            <div class="layui-form-item">
                <label class="layui-form-label">${field.comment}</label>
                <div class="layui-input-block">
                    <input type="text" id="${field.propertyName}" name="${field.propertyName}" required  lay-verify="required" placeholder="请输入${field.comment}" autocomplete="off" class="layui-input" />
                </div>
            </div>
            </#if>
            <#if field.propertyType == 'Integer'>
            <div class="layui-form-item">
                <label class="layui-form-label">${field.comment}</label>
                <div class="layui-input-block">
                    <input type="number" name="${field.propertyName}" required  lay-verify="required" placeholder="请输入${field.comment}" autocomplete="off" class="layui-input" />
                </div>
            </div>
            </#if>
            <#if field.propertyType == 'LocalDateTime'>
            <div class="layui-form-item">
                <label class="layui-form-label">${field.comment}</label>
                <div class="layui-input-block">
                    <input type="text" id="userBirthDay" name="${field.propertyName}" required  lay-verify="required|date" placeholder="请选择${field.comment}" autocomplete="off" class="layui-input" />
                </div>
            </div>
            </#if>
            </#list>
            <#------------  END 字段循环遍历  ---------->
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit lay-filter="formSubmit">立即提交</button>
                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>
            </div>
        </form>
        <div id="prevModal" style="display: none" class="layui-tab layui-tab-brief" lay-filter="prevModal">
            <ul class="layui-tab-title"></ul>
            <div class="layui-tab-content"></div>
        </div>
        <script type="text/html" id="generatorTableToolbar">
            <button class="layui-btn layui-btn-sm" lay-event="reload">刷新</button>
            <button class="layui-btn layui-btn-sm" lay-event="insert">添加</button>
            <input style="display: inline; width: 20%; height: 31px;" type="text" name="title" required lay-verify="required" placeholder="请输入表名" autocomplete="off" class="layui-input tableName">
            <button class="layui-btn layui-btn-sm" lay-event="search">
                <i class="layui-icon layui-icon-search"></i>
            </button>
            <!--<button class="layui-btn layui-btn-sm" lay-event="getCheckLength">获取选中数目</button>
            <button class="layui-btn layui-btn-sm" lay-event="isAll">验证是否全选</button>-->
        </script>
        <script type="text/html" id="generatorTableBar">
            <a class="layui-btn layui-btn-xs" lay-event="update">编辑</a>
            <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
        </script>

        <table class="layui-hide" id="generatorTable" lay-filter="generatorTable"></table>
    </body>
</html>
<script src="https://www.layuicdn.com/layui-v2.5.6/layui.all.js" type="text/javascript"></script>
<script src="../../js/vains/system/${entity}.js"></script>